//  处理显示的文本
        formattedBusinessAddress(maxWidth, text) {
            const ellipsis = '...';
            const container = document.createElement('div');
            container.style.visibility = 'hidden';
            container.style.position = 'absolute';
            container.style.whiteSpace = 'nowrap';
            container.style.fontSize = '16px'; // 设置字体大小
            container.innerText = text;
            document.body.appendChild(container);
            let truncatedText = text;
            if (container.offsetWidth > maxWidth) {
                while (container.offsetWidth > maxWidth && truncatedText.length > 0) {
                    truncatedText = truncatedText.slice(0, -1);
                    container.innerText = truncatedText + ellipsis;
                }
                truncatedText += ellipsis;
            }
            document.body.removeChild(container);
            return truncatedText;
        },
